from gui import gui
from gui . tests . create_widget_test_assistant import gui_create_widget_test_assistant

class application_window_fake :
    pass

class label_fake :
    pass

class string_var_fake :
    def __init__ ( self ) :
        self . _text = None
    def set ( self , text ) :
        self . _text = text

class tkinter_fake :
    def __init__ ( self ) :
        self . _string_vars = [ ]
    def Tk ( self ) :
        return application_window_fake ( )
    def Label ( self , master , _fake_arg = None , text = None , borderwidth = None , relief = None , anchor = None , textvariable = None , image = None ) :
        return label_fake ( )
    def StringVar ( self ) :
        string_var = string_var_fake ( )
        self . _string_vars += [ string_var ]
        return string_var

class mediator_fake :
    def __init__ ( self ) :
        self . _gui_create_application_window_reply = None
    def gui_create_application_window_reply ( self , window ) :
        self . _gui_create_application_window_reply = window
    def gui_create_label_reply ( self , label ) :
        pass 

class gui_label_tests :
    'gui_label'
    def __init__ ( self , test ) :
        self . _assistant = gui_create_widget_test_assistant ( test )
        self . _test = test
        self . _tkinter = tkinter_fake ( )
        self . _mediator = mediator_fake ( )
        self . _gui = gui ( mediator = self . _mediator , tkinter = self . _tkinter , tkfont = None , scheduler = None )
    def test_gui_create_label ( self ) :
        self . _assistant . check_gui_create_arbitrary_element ( 'label' , None , None , None , None )
    def test_gui_create_label_string_var ( self ) :
        self . _assistant . check_gui_create_arbitrary_element_string_var ( 'label' , None , None , None , None )
    def test_gui_create_label_args ( self ) :
        self . _assistant . check_gui_create_arbitrary_element_args_with_string_var ( 'label' , 'my text' , 'my borderwidth' , 'my relief' , 'my anchor' )
    def test_gui_create_label_string_var_persistance ( self ) :
        self . _assistant . check_gui_create_arbitrary_element_string_var_persistance ( 'label' , None , None , None , None )
    def test_gui_create_label_string_var_destruction ( self ) :
        self . _assistant . check_gui_create_arbitrary_element_string_var_destruction ( 'label' , None , None , None , None )
    def test_gui_create_label_persistance ( self ) :
        self . _assistant . check_gui_create_arbitrary_element_persistance ( 'label' , None , None , None , None )
    def test_gui_create_label_destruction ( self ) :
        self . _assistant . check_gui_create_arbitrary_element_destruction ( 'label' , None , None , None , None )
    def test_gui_create_label_encapsulation ( self ) :
        self . _assistant . check_gui_create_arbitrary_element_encapsulation ( 'label' , None , None , None , None )
    def test_gui_create_label_child ( self ) :
        self . _assistant . check_gui_create_arbitrary_element_child ( 'label' , None , None , None , None )
    def test_gui_create_label_text ( self ) :
        self . _gui . gui_create_application_window_request ( )
        window = self . _mediator . _gui_create_application_window_reply
        self . _gui . gui_create_label_request ( window , 'my text' , None , None , None )
        self . _test . assume_equal ( self . _tkinter . _string_vars [ 0 ] . _text , 'my text' )
    def test_gui_set_label_text ( self ) :
        self . _assistant . check_gui_set_arbitrary_element_text ( 'label' , None , None , None , None )
